
//
//  YXHomeCell.m
//  CaoShi
//
//  Created by aa on 2018/5/4.
//  Copyright © 2018年 杨旭. All rights reserved.
//

#import "YXHomeCell.h"
#import "YXHomeModel.h"
@interface YXHomeCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imgView;

@property (weak, nonatomic) IBOutlet UILabel *titleLab;

@property (weak, nonatomic) IBOutlet UILabel *contentLab;

@end


@implementation YXHomeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(YXHomeModel *)model {
    _model = model;
    
    [_imgView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",_model.image]]];
    _titleLab.text = _model.title;
    _contentLab.text = _model.pubdate;
    
}


@end
